package com.legal.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>题库分类表</p>
 *
 * @author xiaopeng
 * @since 2025-06-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_question_category")
@Schema(name = "QuestionCategory", description = "题库分类信息表")
public class QuestionCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增主键ID", example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "分类唯一编号", example = "CAT_JAVA_BASIC")
    private String categoryNo;

    @Schema(description = "分类名称", example = "Java基础知识")
    private String categoryName;

    @Schema(description = "分类详细描述",
            example = "包含Java基础语法、面向对象等基础知识题目")
    private String description;

    @Schema(description = "分类显示排序",
            example = "1")
    private Integer sortOrder;

    @Schema(description = "启用状态标识",
            example = "1")
    private Integer isActive;

    @Schema(description = "创建人ID", example = "admin")
    private String creator;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Schema(description = "记录创建时间",
            example = "2025-06-27")
    private LocalDateTime createTime;

    @Schema(description = "最后更新人ID", example = "admin")
    private String updater;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Schema(description = "最后更新时间",
            example = "2025-06-27")
    private LocalDateTime updateTime;
}
